/* 
token持久化
封装存取方法

*/

const TOKEN_KEY = 'token_key'

const setToken = (token: string) => localStorage.setItem(TOKEN_KEY , token)

const getToken = () => localStorage.getItem(TOKEN_KEY )

const removeToken = () => localStorage.removeItem(TOKEN_KEY)

export {
    setToken,
    getToken,
    removeToken
}
